<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>result jsp page</title>
   

  </head>
  
  <body style="text-align: center;"> 
    	
    	<h2>all results</h2>
    	
    	<table border="1" align="center" width="40%">
    		<tr>
    			<td colspan="5" align="center">person的所信息</td>
    		</tr>
    		<tr>
    			<td>id</td>
    			<td>username</td>
    			<td>password</td>
    			<td>sex</td>
    			<td>age</td>
    			<td>操作</td>
    		</tr>
    		
    		<s:iterator value="#request.persons" id="per">
    			<tr style="text-align: center;">
    				<td> <s:property value="#request.per.id"/> </td>
    				<td> <s:property value="#request.per.username"/> </td>
    				<td> <s:property value="#request.per.password"/> </td>
    				<td> <s:property value="#request.per.sex"/> </td>
    				<td> <s:property value="#request.per.age"/> </td>
    				<td>
    				 <a href="Person_userDelete.action?idd=<s:property value='#request.per.id'/>">删除</a>
    				 <a href="Person_userQuery2.action?idd=<s:property value='#request.per.id'/>">修改</a>
    				</td>
    			</tr>
    		</s:iterator>
    		
    		
    		
    	</table>
    	
    	<h2>Test...</h2>
    	<s:property value="#request.testJstl"/>
    	${testJstl}
  </body>
</html>
